
/*******************************************************
intern() check string exist or not
********************************************************/

import java.util.Arrays;

public class Main { 
    public static void main(String[] args) { 
	String arr1= "my";
	String arr2= "work";
	String arr3= "mywork";
	String arr4;

	arr4=arr1+arr2;
	System.out.println(arr4==arr3);

	arr4=(arr1+arr2).intern();
	System.out.println(arr4==arr3);
		
    } 	
} 
